package woqu;

import java.util.Arrays;

public class Demo05 {
    public static void main(String[] args) {
        //String str = "sa8sd6s1sd7kw04df23kds59";
        //输出的结果是1，2，3，4，5，6，7，8，9
        String str = "sa8sd6s1sd7kw04df23kds59";
        String str1 = str.replaceAll("[a-z]+","");
        String[] sa = str1.split("");
        Arrays.sort(sa);
        System.out.println(Arrays.toString(sa));
    }
}
